Builder

class Builder(optionalServices: List<UUID> = emptyList(), pickerSettings: WebDevicePickerSettings = WebDevicePickerSettings()) : BaseScanner.Builder

Builder for creating a DefaultScanner

Parameters

optionalServices

the advertisement-independent access allowlist applied to every picker invocation. Services that are not advertised (or only available after connecting) must be listed here to be reachable.

pickerSettings

the WebDevicePickerSettings configuring the "Add Device" overlay

Constructors

Link copied to clipboard
constructor(optionalServices: List<UUID> = emptyList(), pickerSettings: WebDevicePickerSettings = WebDevicePickerSettings())

Functions

Link copied to clipboard
open override fun create(settings: BaseScanner.Settings, coroutineScope: CoroutineScope, scanningDispatcher: CoroutineDispatcher = com.splendo.kaluga.bluetooth.scanner.scanningDispatcher): BaseScanner

Creates a BaseScanner